package com.devmindset.jpatoolbox.onetoone;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.devmindset.jpatoolbox.OneToOneUtil;
import com.devmindset.jpatoolbox.base.BaseEntity;


@Entity(name = "FORWARD_11")
@Table(name = "FORWARD_11")
public class Forward extends BaseEntity {
	
  @OneToOne(cascade = CascadeType.ALL)
  private Inverse inverse;

  public Inverse getInverse() {
    return inverse;
  }

  public void setInverse(Inverse inverse) {
    OneToOneUtil.wire(this, inverse, Forward.class, Inverse.class);
  }
    
  
}
